package com.example.study;

import com.example.study.commen.commenutils.SpringUtil;
import com.example.study.config.ServerConfig;
import com.github.linyuzai.connection.loadbalance.websocket.EnableWebSocketLoadBalanceConcept;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
//import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@EnableCaching //缓存框架
//@Import(SpringUtil.class)
@MapperScan({"com.example.study.plus.mybatis_plus.mapper","com.example.study.manager_plus.mybatis_plus.mapper"})

//@EnableFeignClients
//@EnableWebSocketLoadBalanceConcept //wensocket多实例转发
//@NacosPropertySource(dataId = "mysql", autoRefreshed = true)
//@EnableDiscoveryClient
public class StudyApplication {

    public static void main(String[] args) {
//        ConfigurableApplicationContext run = SpringApplication.run(StudyApplication.class, args);
//        SpringUtil.setApplicationContext(run);
        SpringApplication.run(StudyApplication.class, args);

    }

}
